aboutsummaryrefslogtreecommitdiff
path: root/src/app/manga/[title]/[id]/page.jsx
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-26 23:57:32 +0530
committerreal-zephex <[email protected]>2024-04-26 23:57:32 +0530
commit4c74f9e66c6765f771f816ae64adaa2da66ed013 (patch)
tree653122ca698b5a2e99e6d8839c5bd2c976d652b2 /src/app/manga/[title]/[id]/page.jsx
parentminor ui fix (diff)
downloaddramalama-4c74f9e66c6765f771f816ae64adaa2da66ed013.tar.xz
dramalama-4c74f9e66c6765f771f816ae64adaa2da66ed013.zip
trying to implement edge runtime
Diffstat (limited to 'src/app/manga/[title]/[id]/page.jsx')
-rw-r--r--src/app/manga/[title]/[id]/page.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx
index ffd962d..2c1fcc8 100644
--- a/src/app/manga/[title]/[id]/page.jsx
+++ b/src/app/manga/[title]/[id]/page.jsx
@@ -5,6 +5,8 @@ import { redirect } from "next/navigation";
import { FaStar } from "react-icons/fa";
import { PreFetchChaterLinks } from "../../cacher";
+export const runtime = 'edge';
+
export default async function MangaInfo({ params }) {
const id = params.id;
const data = await getMangaInfo(id);
@@ -129,7 +131,7 @@ export default async function MangaInfo({ params }) {
async function getMangaInfo(id) {
const res = await fetch(
`https://consumet-jade.vercel.app/meta/anilist-manga/info/${id}?provider=mangadex`,
- { next: { revalidate: 86400 } }
+ { next: { revalidate: 21600 } }
);
const data = await res.json();
return data;